// 用户模块
import { makeAutoObservable } from "mobx"
import { http } from '@/utils'

class UserStore {
    userInfo = {}
    constructor() {
        makeAutoObservable(this)
    }
    getUserInfo() {
        http.get('/user/profile').then(res => {
            this.userInfo = res.data
        })
    }
}

export default UserStore